package com.why.mtqq.config;

import lombok.Data;

import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "mqtt")
@Data
public class MqttConfig {
    private String topic;
    private String content;
    private int qos;
    private String broker;
    private String clientId;
    private MemoryPersistence persistence = new MemoryPersistence();


}
